package com.goods.business.service;

import com.goods.common.error.BusinessException;
import com.goods.common.model.business.ProductCategory;
import com.goods.common.vo.business.ProductCategoryTreeNodeVO;
import com.goods.common.vo.business.ProductCategoryVO;
import com.goods.common.vo.system.PageVO;

import java.util.List;


public interface CategroyService {
    //加载分类数据
   public PageVO<ProductCategoryTreeNodeVO> getCategoryTree(Integer pageNum, Integer pageSize);

    //加载父级分类数据
    List<ProductCategoryTreeNodeVO> getParentCategoryTree();

    //添加分类数据
    void add(ProductCategory productCategory);
    //点击修改按钮进行显示指定分类数据
    ProductCategory edit(Long id);
    //分类数据编辑界面点击修改确认
    void update(ProductCategory productCategory, Long productCategroyId);
    //删除分类数据
    void delete(Long productCategroyId) throws BusinessException;
}
